package com.thomas.sdk.manager;

import android.content.Context;
import android.widget.Toast;

/**
 * Toast提示工具类
 * 
 * @author thomas
 * 
 */
public class ToastManager {

	public static void show(Context context, Object text) {
		show(context, text, 0);
	}

	public static void show(Context context, Object text, int duration) {
		if (text instanceof String) {
			Toast.makeText(context, (String) text, duration).show();
			return;
		}
		if (text instanceof Integer) {

			Toast.makeText(context, (Integer) text, duration).show();
			return;
		}

	}
}
